var mongoose = require('mongoose');
var Schema = mongoose.Schema;
// 定义表结构
var musicObj = new Schema({
    song_name: String,
    author: String,
    time: String,
    song_id: String,
    // song_url: String,
});
musicObj.statics.findBySongId = function (id, callBack) {
    this.find({
        song_id: id
    }, callBack);
};
module.exports = mongoose.model('musics',musicObj);//暴露出去